home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-11 / shelp50a.zip / HELPDEMO.PRG < prev    next >
Text File  |  1991-08-11  |  5KB  |  141 lines

  1. FUNCTION HELPDEMO
  2. External superbuild   &&  Complete Superhelp System
  3. *External minibuild   &&  Superhelp Help Building System
  4. *External codebuild   &&  Superhelp Code Generating System
  5. Set key -30 to superbuild &&  Call to the Complete Superhelp System
  6. *Set key -30 to minibuild &&  Call to the Superhelp Help Building System
  7. *Set key -31 to codebuild &&  Call to the Superhelp Code Generating System
  8. Set key -9 to helpmgr
  9. Set Key -4 to Register
  10. Set Key -2 to Nowait
  11. Set Key -20 to Helpcon
  12. Set scoreboard off
  13. Set Exclusive Off
  14. Setcolor('W+/B,W+/R')
  15. Store ' ' to A,B,C,D,E,F,G,H,I,J,K,L,M,N,O
  16. shelpproc = 'MASTER'
  17. Clear Screen
  18. @01,03 SAY '┌───────────────────────────────────────────────────────────────────────┐'
  19. @02,03 SAY '│  ░███  ░█  ░█ ░█████  ░██████ ░█████  ░█  ░█ ░██████ ░███    ░█████   │'
  20. @03,03 SAY '│ ░█  ░█ ░█  ░█  ░█  ░█  ░█  ░█  ░█  ░█ ░█  ░█  ░█  ░█  ░█      ░█  ░█  │'
  21. @04,03 SAY '│ ░█     ░█  ░█  ░█  ░█  ░█ █    ░█  ░█ ░█  ░█  ░█ █    ░█      ░█  ░█  │'
  22. @05,03 SAY '│  ░███  ░█  ░█  ░████   ░███    ░████  ░█████  ░███    ░█      ░████   │'
  23. @06,03 SAY '│     ░█ ░█  ░█  ░█      ░█ █    ░███   ░█  ░█  ░█ █    ░█  ░█  ░█      │'
  24. @07,03 SAY '│ ░█  ░█ ░█  ░█  ░█      ░█  ░█  ░█ ░█  ░█  ░█  ░█  ░█  ░█ ░██  ░█      │'
  25. @08,03 SAY '│  ░███   ░███  ░███    ░██████ ░██  ░█ ░█  ░█ ░██████ ░██████ ░███     │'
  26. @09,03 SAY '│                                                                       │'
  27. @10,03 SAY '│                               Version 5.0                             │'
  28. @11,03 SAY '└───────────────────────────────────────────────────────────────────────┘'
  29.  
  30. @ 13,26 SAY '** BEFORE GETTING STARTED **'
  31. @ 15,10 Say '1.  Please print the PRINT.ME and HINTS.TXT files.'
  32. @ 16,10 SAY '2.  Setup Project Information.'
  33. @ 17,10 SAY '3.  Setup Window Defaults.'
  34. @ 18,10 SAY '4.  Select Field Level or Conceptual Level Help.'
  35. @ 19,10 SAY '5.  Always best to develop Field and Conceptual Level Help.'
  36. @ 20,10 SAY '6.  Now test the best looking help system ever!'
  37. INKEY(0)
  38. CLEAR SCREEN
  39. @0,0 to 24,79
  40. @20,5 to 23,74
  41. Setcolor('GR+/B')
  42. @ 2,25 Say 'Superhelp Code Generator v5.0'
  43. @ 3,38 Say 'Demo'
  44. @ 4,50 Say '    F1 - Help'
  45. @ 6,50 Say '    F3 - Inkey Help'
  46. @ 7,50 Say '    F5 - Link Windows'
  47. @ 8,50 Say '   F10 - Help Manager'
  48. @ 9,50 Say 'Alt F1 - Create Help'
  49. @10,50 Say '   ESC - Exits'
  50. Setcolor('W+/B,W+/R,N/W,N/W,B')
  51. @21,10 Say 'Help was created using Simulated Memoedit with Reference File.'
  52. @22,10 Say 'Try using all the Superhelp Commands to generate sample help.'
  53. Do While Lastkey() != 27
  54. @ 5,10 Say ' 1.  Introduction               ' get A
  55. @ 6,10 Say ' 2.  Window Commands            ' get B
  56. @ 7,10 Say ' 3.  Color Commands             ' get C
  57. @ 8,10 Say ' 4.  Shadow Commands            ' get D
  58. @ 9,10 Say ' 5.  Help Code Generation       ' get E
  59. @10,10 Say ' 6.  User Guide Generation      ' get F
  60. @11,10 Say ' 7.  Data Dictionary Generation ' get G
  61. @12,10 Say ' 8.  Help Text Commands         ' get H
  62. @13,10 Say ' 9.  System Defaults            ' get I
  63. @14,10 Say '10.  Import/Export Text         ' get J
  64. @15,10 Say '11.  Project Setup              ' get K
  65. @16,10 Say '12.  Color Setup                ' get L
  66. @17,10 Say '13.  Screen Capture             ' get M
  67. @18,10 Say '14.  Help Manager               ' get N
  68. @19,10 Say '15.  Link Windows               ' get O
  69. Read
  70. CLOSE ALL
  71. Enddo
  72. RETURN NIL
  73.  
  74. Function Register
  75. LOCAL GETLIST:={}
  76. Set Key -4 To
  77. rscr = savescreen(0,0,24,79)
  78. Setcolor('W+/B,W+/R')
  79. clear screen
  80. fname = space(15)
  81. lname = space(20)
  82. add1 = space(25)
  83. add2 = space(25)
  84. city = space(15)
  85. state = space(2)
  86. zip = space(10)
  87. phone = space(13)
  88. @0,0 to 24,79
  89. @19,5 to 22,74
  90. Setcolor('GR+/B')
  91. @ 2,25 Say 'Superhelp Code Generator v5.0'
  92. @ 3,31 Say 'Link Windows Demo'
  93. @ 6,54 Say 'F1 - Help'
  94. @ 7,50 Say 'Alt F1 - Create Help'
  95. @ 8,53 Say 'F10 - Help Manager'
  96. Setcolor('W+/B,W+/R,N/W,N/W,B')
  97. shelpvar = 'Customer'
  98. @20,10 Say 'Help was created using Simulated Memoedit with Reference File.'
  99. @21,10 Say 'Try using all the Superhelp Commands to generate sample help.'
  100. @ 5,10 Say 'Name       : ' Get fname
  101. @ 5,40 Get lname
  102. @ 6,10 Say 'Address    : ' Get add1
  103. @ 7,10 Say '             ' Get add2
  104. @ 8,10 Say 'City       : ' Get city
  105. @ 9,10 Say 'State      : ' Get state
  106. @10,10 Say 'Zipcode    : ' Get zip Pict '99999-9999'
  107. @11,10 Say 'Phone No   : ' Get phone Pict '(999)999-9999'
  108. Read
  109. Restscreen(0,0,24,79,rscr)
  110. Set Key -4 To Register
  111. Return''
  112.  
  113.  
  114. Function Nowait
  115. Set Key -2 To
  116. rscr = savescreen(0,0,24,79)
  117. Setcolor('W+/B,W+/R')
  118. clear screen
  119. Setcolor('GR+/B')
  120. @ 2,25 Say 'Superhelp Code Generator v2.6'
  121. @ 3,31 Say 'Inkey Window Demo'
  122. Setcolor('W+/B,W+/R')
  123. @ 4,54 Say 'F1 - Help'
  124. @ 5,50 Say 'Alt F1 - Create Help'
  125. @ 7,20 to 13,60 DOUBLE
  126. @ 9,22 Say 'This is an example of a no wait'
  127. @10,22 Say 'state in Clipper using ENKEY().'
  128. @11,22 Say 'Create Help by press Alt-F1.'
  129. @14,20 Say 'Syntax: ENKEY(time,PROCNAME(),variable)'
  130. @15,20 Say '               │      │         │      '
  131. @16,20 Say '               │      │         └──> Name assigned to Var'
  132. @17,20 Say '               │      └───> Clipper Function '
  133. @18,20 Say '               └───> Just like Inkey parameter'
  134. pass = 0
  135. keyp =  STR(Enkey(0,PROCNAME(0),"INKEY1"),3)
  136. Restscreen(0,0,24,79,rscr)
  137. Set Key -2 To Nowait
  138. Return''
  139.  
  140.  
  141.